package think.in.spring.bean;

import javafx.print.Collation;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import java.util.Collection;

@Data
@Component
public class QualifierDemo {


    @Autowired
    @Qualifier("idBean1")
    private IdBean idBean; //idBean1

    @Autowired
    private IdBean defaultIdBean; //idBean2

    @Autowired
    private Collection<IdBean> idBeanList; //idBean1,2,3,4,5

    @Autowired
    @Qualifier("1")
    private Collection<IdBean> qualifierIdBeanList;//idBean4

}
